<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>

<%@ page isELIgnored ="false" %>

<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<html>   
    <head>	
	  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	  <title>HMS容量覆盖接入网管系统</title>
      <link href="../../css/layout.css" rel="stylesheet" type="text/css"/>	
   	  <link rel="stylesheet" type="text/css" href="../../lib/dijit/themes/soria/soria.css"/>
      <link href="../../lib/dojox/grid/resources/Grid.css" rel="stylesheet" type="text/css"/>
      <link href="../../lib/comba/widget/templates/css/first.css" rel="stylesheet" type="text/css"/>
      <link href="../../lib/comba/widget/templates/css/PagingGrid.css" rel="stylesheet" type="text/css"/>
      <link href="../../lib/comba/widget/templates/css/Rounded.css" rel="stylesheet" type="text/css"/>
      <link href="../../lib/dojox/grid/resources/soriaGrid.css" rel="stylesheet" type="text/css"/>
      <link href="../../lib/dojox/grid/enhanced/resources/EnhancedGrid.css" rel="stylesheet" type="text/css"/>

      <link rel="stylesheet" type="text/css" href="../../lib/comba/widget/templates/css/button.css">
	  <link rel="stylesheet" type="text/css" href="../../lib/comba/widget/templates/css/icon.css">
	    <link rel="stylesheet" type="text/css" href="../../css/topolopy_common.css">
	 
	  <style type="text/css">    
		      .dojoxGrid table { margin: 0; } jspl, body { width: 100%; height: 100%; margin: 0; }
      </style>
<%--      <script type='text/javascript' src="<%=request.getContextPath()%>/dwr/engine.js"></script>--%>
<%--	  <script type='text/javascript' src='<%=request.getContextPath()%>/dwr/util.js'></script>	--%>
	  <script type="text/javascript">
			djConfig = {
				isDebug: false,
				parseOnLoad: true,
				parseWidgets:false,
				defaultDuration:50,
				searchIds:[]
			};			
			 mxBasePath = '../images/topologyBase';
	  </script>   
	  <script type="text/javascript" src="../../lib/dojo/dojo.js"></script>
      <%
		String uAgent =  request.getHeader("User-Agent");
		if(uAgent.indexOf("MSIE") != -1){
	  %>
	      <script type="text/javascript" src="../../lib/comba/widget/js/mxclient_ie.js"></script>
	  <%}else{%>
		  <script type="text/javascript" src="../../lib/comba/widget/js/mxclient_ff.js"></script>
	   <%}%>
		<script type="text/javascript" src="../../lib/comba/widget/js/Xml2Json.js"></script>
		<script type="text/javascript" src="../../lib/comba/widget/js/Json2Xml.js"></script>
      <script type="text/javascript">   
        //dojo.locale="en"; 	
        dojo.locale="zh-cn"; 
        dojo.requireLocalization("comba.i18n.common","config","zh-cn")
        dojo.requireLocalization("comba.i18n.common","config","en")
        dojo.requireLocalization("comba.i18n.common","action","zh-cn")
        //dojo.requireLocalization("comba.i18n.common","config","en")
        dojo.requireLocalization("comba.i18n.common","message","zh-cn")
        //dojo.requireLocalization("comba.i18n.common","config","en")
         dojo.requireLocalization("comba.i18n.common","button","zh-cn")
        //dojo.requireLocalization("comba.i18n.common","config","en")
	    dojo.require("dojo.io.script");
	    dojo.require("dojo.cookie");
	    dojo.require("dojo.hash");
	    dojo.require("dojo.window")
       
	    dojo.require("dojo.data.ItemFileReadStore");
			dojo.require("dojox.mobile");			// This is a mobile app.
			dojo.require("dojox.mobile.parser");	// This mobile app supports running on desktop browsers
			dojo.require("dojox.mobile.compat");	// This mobile app uses declarative programming with fast mobile parser
			//dojo.require("dojox.mobile.deviceTheme");
			//dojo.require("dojox.mobile.Carousel");
			dojo.require("dojox.mobile.ScrollableView");
		 
		 dojo.require("comba.action.TaskAction");
	    
	    dojo.require("comba.component.WidgetFactory");  
	    dojo.require("comba.component.ButtonFactory");
	    dojo.require("comba.component.Rest");
	    dojo.require("comba.component.DicParser");
	    dojo.require("comba.component.HMSToolkit");
	    dojo.require("comba.component.CellFormatter");
	    dojo.require("comba.component.RegExpGen");
	    dojo.require("comba.component.Security");
	    dojo.require("comba.component.ConfigStore");
	    dojo.require("comba.component.FlowStore");
	    dojo.require("comba.component.ConfigRule");
	    		    
	    dojo.require("comba.widget.MsgWindow");
	    dojo.require("comba.widget.MsgDialog");
	    dojo.require("comba.widget.Uploader");
	    dojo.require("comba.widget.SiteTree");
	    dojo.require("comba.widget.ToplogyClient");
	    
	    dojo.require("comba.widget.BusinessGrid");
	        
	    dojo.require("comba.manager.Business");
	    dojo.require("comba.manager.DisManager");
	    dojo.require("comba.manager.FormManager");
	    dojo.require("comba.manager.FlowManager");
	    dojo.require("comba.manager.FemtoConfigManager");
	    dojo.require("comba.manager.FemtoSettingsManager");
	    dojo.require("comba.manager.MibConfigManager");
	    dojo.require("comba.manager.MibSettingsManager");
	    dojo.require("comba.manager.GateWayMibSettingsManager");	
	    
        dojo.require("comba.action.CommonAction");
	    dojo.require("comba.action.CreateAction");
	    dojo.require("comba.action.UpdateAction");
	    dojo.require("comba.action.DeleteAction");
	    dojo.require("comba.action.ViewAction");

        dojo.require("comba.action.UserAction");
        dojo.require("comba.action.FemtoAction");
        dojo.require("comba.action.GateWayAction");
        dojo.require("comba.action.MeasureJobAction");
        dojo.require("comba.action.StorageLimitAction");  
        dojo.require("comba.action.TopologyAction");
        dojo.require("comba.widget.IPPing");
        dojo.require("comba.action.SysToolsAction");
        dojo.require("comba.widget.IPPing");
        dojo.require("comba.widget.Telnet");
        dojo.require("comba.widget.TraceRoute");
        dojo.require("comba.widget.IPScan");
        
	    var ConfigResource=dojo.i18n.getLocalization("comba.i18n.common","config");
	    var ActionResource=dojo.i18n.getLocalization("comba.i18n.common","action");
	    var MessageResource=dojo.i18n.getLocalization("comba.i18n.common","message");
	    var ButtonResource=dojo.i18n.getLocalization("comba.i18n.common","button");

		var IPScanAction = new comba.widget.IPScan();
		var TraceRouteAction = new comba.widget.TraceRoute();
		var TelnetAction = new comba.widget.Telnet();
		var IPPinpAction = new comba.widget.IPPing();
		var SysToolsAction = new comba.action.SysToolsAction();
        var HMSWidgetFactory=new comba.component.WidgetFactory();	    
        var BtnFac=new comba.component.ButtonFactory();
	    var HMSParser=new comba.component.DicParser();
	    var HMSRest=new comba.component.Rest();
        var HMSTool=new comba.component.HMSToolkit();
        var HMSFormatter=new comba.component.CellFormatter();
        var HMSRegExpGen=new comba.component.RegExpGen();
        var HMSStore=new comba.component.ConfigStore();
        var HMSRule=new comba.component.ConfigRule();
        var HMSFlowStore=new comba.component.FlowStore();
        var HMSMessage=null;
        var HMSSecurity=new comba.component.Security();
        var HMSTopology=new comba.widget.ToplogyClient();//拓扑图对象
        
	    var CommonAction=new comba.action.CommonAction();
	    var CreateAction=new comba.action.CreateAction();
	    var ViewAction=new comba.action.ViewAction();
	    var UpdateAction=new comba.action.UpdateAction();
	    var DeleteAction=new comba.action.DeleteAction();
	   	    
	    var UserAction=new comba.action.UserAction({basePath:'<%=path%>'});
	    var FemtoAction=new comba.action.FemtoAction();
    	var GateWayAction=new comba.action.GateWayAction();
	    var MeasureJobAction = new comba.action.MeasureJobAction();
	    var StorageLimitAction = new comba.action.StorageLimitAction();
	    var TopologyAction=new comba.action.TopologyAction();    
	   
	    var HMSBusiness=new comba.manager.Business();
	    var DisManager=new comba.manager.DisManager();	 
	    var FormManager=new comba.manager.FormManager();
        var FlowManager=new comba.manager.FlowManager();
        var HMSFemtoConfigManager=new comba.manager.FemtoConfigManager();
        var HMSFemtoSettingsManager=new comba.manager.FemtoSettingsManager();
        var HMSMibConfigManager=new comba.manager.MibConfigManager();
        var HMSMibSettingsManager=new comba.manager.MibSettingsManager();
        var HMSGateWayMibSettingsManager=new comba.manager.GateWayMibSettingsManager();

        var TaskAction=new comba.action.TaskAction();	
        var MsgPanel=new comba.widget.MsgDialog({},dojo.byId("msg"));
        MsgPanel.startup();
    </script>
    </head>
    <body class="soria"  style=""> 
<%--		<div dojoType="dojox.layout.ContentPane" title="告警管理" preventCache="true" refreshOnShow=true class="center" style="padding:0px" href="../layout/mainlayout/C_6.jsp" ></div>--%>
<%--		<script type="text/javascript">  --%>
<%--		   HMSBusiness.startup({--%>
<%--			    title:'用户管理',--%>
<%--			    structure:"UserTestCol",--%>
<%--				service:"user",--%>
<%--				filter_data:"UserTestFil",--%>
<%--				pk:"testTab",--%>
<%--				query:{userId:"*"},--%>
<%--				grid_buttons:["CREATE","VIEW","UPDATE","DELETE"],--%>
<%--				filter_buttons:['FIND']--%>
<%--			  });    --%>
<%--		</script>--%>
<%--		<div id="testTab"></div>--%>
<%--         <div id="msg" style="display:none"></div>--%>
<%--         <div dojoType="dijit.layout.TabContainer" region="center" id="manager" tabStrip="true" class="container">--%>
<%--				<div dojoType="dojox.layout.ContentPane" title="告警管理"  preventCache="true" refreshOnShow=true class="center" style="padding:0px" href="../layout/mainlayout/C_6.jsp" ></div>	--%>
<%--         </div>--%>

<div id="testTab"></div>
<script type="text/javascript">  
   HMSBusiness.startup({
	    title:'用户管理',
	    structure:"UserTestCol",
		service:"user",
		filter_data:"UserTestFil",
		filter_value:"default",
		pk:"testTab",
		query:{userId:"*"},
		grid_buttons:["CREATE","VIEW","UPDATE","DELETE"],
		filter_buttons:['FIND']
	  });    
</script>
    </body>
</html>